import { request } from './index'
export const login = data => {
	return request({
		url: '/app/noAuth/wx/login_by_wx',
		method: 'POST',
		data,
	})
}
export const userInfo = data => {
	return request({
		url: '/app/noAuth/wx/user_info',
		method: 'POST',
		data,
	})
}
export const getOrgMenuList = data => {
	return request({
		url: '/app/auth/tAppMenu/getOrgMenuList',
		method: 'POST',
		data,
	})
}
export const getFormJson = data => {
	return request({
		url: '/app/auth/tCustomerform/getFormJson',
		method: 'POST',
		data,
	})
}
// 挂号服务
export const selectDeptInfo = data => {
	return request({
		url: '/app/noAuth/registration/selectDeptInfo',
		method: 'POST',
		data,
	})
}
// 专科门诊
export const selectDoctorInfo = data => {
	return request({
		url: '/app/noAuth/registration/selectDoctorInfo',
		method: 'POST',
		data,
	})
}
// 预约挂号

export const selectRegistrationInfo = data => {
	return request({
		url: '/app/noAuth/registration/selectRegistrationInfo',
		method: 'POST',
		data,
	})
}
// 确认预约
export const orderAndRegister = data => {
	return request({
		url: '/app/noAuth/registration/orderAndRegister',
		method: 'POST',
		data,
	})
}

export const userCompleteInfo = data => {
	return request({
		url: '/app/auth/user/completeInfo',
		method: 'POST',
		data,
	})
}
// 判断是否缴费

export const orderAndRegisterFront = data => {
	return request({
		url: '/app/noAuth/registration/orderAndRegisterFront',
		method: 'POST',
		data,
	})
}

// 查有无绑卡
export const findBindCard = data => {
	return request({
		url: '/app/noAuth/tCardMaster/findBindCard',
		method: 'POST',
		data,
	})
}
// 绑定就诊卡信息
export const createCard = data => {
	return request({
		url: '/app/noAuth/tCardMaster/createCard',
		method: 'POST',
		data,
	})
}
// 查找卡
export const findHisCard = data => {
	return request({
		url: '/app/noAuth/tCardMaster/findHISCard',
		method: 'POST',
		data,
	})
}
// 挂失就诊卡
export const updateCardStatus = data => {
	return request({
		url: '/app/noAuth/tCardMaster/updateCardStatus',
		method: 'POST',
		data,
	})
}
// 补办就诊卡
export const cardFillDo = data => {
	return request({
		url: '/app/noAuth/tCardMaster/cardFillDo',
		method: 'POST',
		data,
	})
}
// 切换就诊卡
export const defaultCard = data => {
	return request({
		url: '/app/noAuth/tCardMaster/defaultCard',
		method: 'POST',
		data,
	})
}

// 菜单
export const getHisClinicDict = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/getHisClinicDict',
		method: 'POST',
		data,
	})
}
// 选择菜单
export const getExamTypeList = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/getExamTypeList',
		method: 'POST',
		data,
	})
}
// * 获取医院列表
export const getHospitalList = data => {
	return request({
		url: '/app/noAuth/torgdict/getHospitalList',
		method: 'POST',
		data,
	})
}

// 预约检查时间段
export const getCheckTimeRecord = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/getHisCheckTimeRecord',
		method: 'POST',
		data,
	})
}
// 提交菜单
export const confirmAppointPrescribe = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/confirmAppointPrescribe',
		method: 'POST',
		data,
	})
}
// * 获取字典接口
export const sysDataDictList = data => {
	return request({
		url: '/app/auth/tsysdatadict/sysDataDictList',
		method: 'POST',
		data,
	})
}
// * 获取bannerList
export const getBannerList = data => {
	return request({
		url: '/app/noAuth/tOrgBanne/getList',
		method: 'POST',
		data,
	})
}
// * 获取文章接口byId
export const tArticleInformationGetModel = data => {
	return request({
		url: '/app/noAuth/tArticleInformation/getModel',
		method: 'POST',
		data,
	})
}
// 获取核酸时间段
export const selectPlanTime = data => {
	return request({
		url: '/app/auth/tCustomerFormData/selectPlanTime',
		method: 'POST',
		data,
	})
}
// 核酸预约
export const insert = data => {
	return request({
		url: '/app/auth/tCustomerFormData/insert',
		method: 'POST',
		data,
	})
}

// 我的页面挂号信息
export const getPatientRegistrationInfo = data => {
	return request({
		url: '/app/noAuth/personalCenter/getPatientRegistrationInfo',
		method: 'POST',
		data,
	})
}
// 检验报告列表
export const getTestList = data => {
	return request({
		url: '/app/noAuth/personalCenter/getTestList',
		method: 'POST',
		data,
	})
}
// 检验报告详情
export const getTestDetailList = data => {
	return request({
		url: '/app/noAuth/personalCenter/getTestDetailList',
		method: 'POST',
		data,
	})
}
// 检查报告列表
export const getExamineList = data => {
	return request({
		url: '/app/noAuth/personalCenter/getExamineList',
		method: 'POST',
		data,
	})
}
// 门诊收费
export const outpatientCharges = data => {
	return request({
		url: '/app/noAuth/personalCenter/outpatientCharges',
		method: 'POST',
		data,
	})
}
// 住院收费
export const hospitalizationCharge = data => {
	return request({
		url: '/app/noAuth/personalCenter/hospitalizationCharge',
		method: 'POST',
		data,
	})
}
// 住院门诊收费详情

export const outpatientChargesDetails = data => {
	return request({
		url: '/app/noAuth/personalCenter/outpatientChargesDetails',
		method: 'POST',
		data,
	})
}

// 日期预约
export const selectClinicDoctorsByDate = data => {
	return request({
		url: '/app/noAuth/registration/selectClinicDoctorsByDate',
		method: 'POST',
		data,
	})
}
// * 获取随访和满意度调查
export const getSatisfactionSurvey = data => {
	return request({
		url: '/app/noAuth/personalCenter/getSatisfactionSurvey',
		method: 'POST',
		data,
	})
}

// * 微信回调
export const wxCancelCallBack = data => {
	return request({
		url: '/pay/noAuth/miniPay/wxCancelCallBack',
		method: 'POST',
		data,
	})
}

// * 获取json数据接口
export const getJsonData = data => {
	return request({
		url: '/app/noAuth/personalCenter/getFormDataJson',
		method: 'POST',
		data,
	})
}
// 交易记录

export const transactionRecord = data => {
	return request({
		url: '/app/noAuth/personalCenter/transactionRecord',
		method: 'POST',
		data,
	})
}
// 民族字典值
export const sysDataDictListType = data => {
	return request({
		url: '/app/auth/tsysdatadicttype/sysDataDictList',
		method: 'POST',
		data,
	})
}
// 健康卡
export const register = data => {
	return request({
		url: '/app/noAuth/healthCard/register',
		method: 'POST',
		data,
	})
}
// 解绑健康卡
export const unbindCard = data => {
	return request({
		url: '/app/noAuth/tCardMaster/unbindCard',
		method: 'POST',
		data,
	})
}
// 检查菜单预约
export const confirmAppointCheckFront = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/confirmAppointCheckFront',
		method: 'POST',
		data,
	})
}
// 保存检查项目
export const saveExamApply = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/saveExamApply',
		method: 'POST',
		data,
	})
}
//诊间提醒
export const clinicReminder = data => {
	return request({
		url: '/app/noAuth/registration/clinicReminder',
		method: 'POST',
		data,
	})
}
// 消息推送
export const getAppData = data => {
	return request({
		url: '/app/noAuth/pushData/getAppData',
		method: 'POST',
		data,
	})
}

// 我的申请
export const applicationForm = data => {
	return request({
		url: '/app/noAuth/personalCenter/applicationForm',
		method: 'POST',
		data,
	})
}

export const revokeTest = data => {
	return request({
		url: '/app/auth/tCustomerFormData/revokeTest',
		method: 'POST',
		data,
	})
}
// 我的检查
export const examineOrInspect = data => {
	return request({
		url: '/app/noAuth/personalCenter/examineOrInspect',
		method: 'POST',
		data,
	})
}
// 检查详情
export const examineOrInspectDetails = data => {
	return request({
		url: '/app/noAuth/personalCenter/examineOrInspectDetails',
		method: 'POST',
		data,
	})
}

// 取消预约
export const cancelFeedback = data => {
	return request({
		url: '/app/noAuth/registration/cancelFeedback',
		method: 'POST',
		data,
	})
}
// 取消挂号
export const cancelRegister = data => {
	return request({
		url: '/app/noAuth/registration/cancelRegister',
		method: 'POST',
		data,
	})
}
// 预约检查
export const confirmAppointCheck = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/confirmAppointCheck',
		method: 'POST',
		data,
	})
}
// 住院充值
export const residenceRechangeSelect = data => {
	return request({
		url: '/app/auth/hospitalizationAdvancePayment/residenceRechangeSelect',
		method: 'POST',
		data,
	})
}
export const residenceRechange = data => {
	return request({
		url: '/app/auth/hospitalizationAdvancePayment/residenceRechange',
		method: 'POST',
		data,
	})
}
export const wxRefund = data => {
	return request({
		url: '/pay/noAuth/miniPay/wxRefund',
		method: 'POST',
		data,
	})
}
// 取消检查
export const cancelCheckFeedback = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/cancelCheckFeedback',
		method: 'POST',
		data
	})
}

export const cancelCheckRegister = data => {
	return request({
		url: '/app/noAuth/appointmentCheck/cancelCheckRegister',
		method: 'POST',
		data
	})
}